*{
    padding: 0;
    margin: 0;
}
#canvas{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    margin: auto;
    background-color: #ccc;
}